<?php require_once('Connections/MYCONN.php'); ?>

<?php
if(isset($_GET["Tbl"]) && isset($_GET["CName"] ) && isset($_GET["ID"]) && isset($_GET["Value"]) && isset($_GET["look"]) )
{
	if(isset($_GET["Tbl"]) && $_GET["Tbl"] != "")
	{
		$TblName = $_GET["Tbl"];
	}
	if(isset($_GET["ID"]) && $_GET["ID"] != "")
	{
		$ParentID = $_GET["ID"];
	}
	if(isset($_GET["CName"]) && $_GET["CName"] != "")
	{
		$CName = $_GET["CName"];
	}
	if(isset($_GET["Value"]) && $_GET["Value"] != "")
	{
		$Value = $_GET["Value"];
	}
	if(isset($_GET["look"]) && $_GET["look"] != "")
	{
		$look = $_GET["look"];
	}
	$TblName = base64_decode($TblName);
	$ParentID = base64_decode($ParentID);
	$CName = base64_decode($CName);
	$look = base64_decode($look);

	//
	$sSQL ="call sp_update_db('".$TblName."',".$ParentID.",'".$CName."','".$Value."', ".$look."); ";
	//$sSQL ="INSERT INTO tb_activity(Description, ParentID, LookupID,Value) VALUES ('TEST', ".$ParentID.",".$look.",".$Value.")";
	echo $sSQL;
	mysql_select_db($database_MYCONN, $MYCONN);
	$Result1 = mysql_query($sSQL, $MYCONN) or die(mysql_error());

}else{
echo "ERROR : Parameters !!!";
}



?>